import { Layout, Spin } from "antd";
import Login from "./Login";
import {Outlet} from "react-router-dom";
const { Header } = Layout;

const headerStyle:React.CSSProperties = {
  textAlign      : "center",
  color          : "#fff",
  height         : 64,
  paddingInline  : 10,
  lineHeight     : "64px",
  backgroundColor: "black",
}

export default function RequireAuth() { 
  return (
    <Layout>
      <Header style={headerStyle}>
        <Login />
      </Header>
      <Outlet />
    </Layout>
  )
}